home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / hidden.not < prev    next >
Text File  |  1991-04-12  |  3KB  |  68 lines

  1. Article 1574 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!cs.utexas.edu!helios!tamuts!n233dk
  3. From: n233dk@tamuts.tamu.edu (Rick Grevelle)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: More SYSEVALS
  6. Message-ID: <8650@helios.TAMU.EDU>
  7. Date: 30 Sep 90 12:00:23 GMT
  8. Sender: usenet@helios.TAMU.EDU
  9. Organization: Texas A&M University
  10. Lines: 54
  11.  
  12. There is perhaps a slight possiblity some confusion might develope over 
  13. this hidden object/directory business.  It seems that Eric Toonen was the
  14. first to discover that the HOME directory contained a directory which is
  15. normally hidden, and unavailable for use.
  16.  
  17. This usually hidden directory is always present in the HOME directory, and
  18. can not be deleted by a reset.  As a matter of fact, if your knowledge is
  19. such that you're able to purge this directory, either a system halt, or a
  20. reset, will actually reinstall it.  In other words, the hidden directory is
  21. there by default.  And also by default, the directory has been named by HP,
  22. using the NULL NAME '' (no spaces).
  23.  
  24. This could constitute a potential problem in that either the user, or the 
  25. calculator could become confused by multiple NULL NAMES of the same length.  
  26. Generally, it is not a good idea to use names, local or global, which are 
  27. already being used by the calculator.  But, as everyone in this news group
  28. is already aware, whatever can be used, can be abused.
  29.  
  30. The actual SYSEVAL address for the NULL NAME is #15781h.  This returns the 
  31. NULL NAME without quotes so that it would be immediatly evaluated if the
  32. current directory were the HOME.  There exist an RPL SYSEVAL that contains
  33. a prefixed machine routine which allows the NULL NAME to be place on the 
  34. stack unevaluated.  Its address is #15777h.
  35.  
  36. As Toonen has already pointed out, aside from the fact that it is hidden,
  37. you CAN use this directory as if it were any other.  It is a true directory
  38. just as the HOME directory.  If this seems a bit unbelievable, it can be
  39. proven simply by using a prefixed machine routine from the ROM to recall
  40. the entire contents of the HOME directory as a directory.  This also is
  41. something you can't do without the use of SYSEVALs, or user written machine
  42. code.  
  43.  
  44. While in the HOME directory, SYSEVAL this address: #8D5Ah.  Essentially this
  45. routine recalls the contents of the current directory to the stack just as if
  46. the name of the directory had been RCLed.  The only difference is that the
  47. routine already knows what directory to recall, and, unlike RCL, it works in
  48. HOME.  Once the HOME directory is on the stack you should be able to see the
  49. hidden directory and the file names it contains.  This is particularly evident
  50. in a 48 whose memory has been cleared.  
  51.  
  52. One final note, which has nothing to do with the above; for reasons unknown,
  53. I was recently asked about a programmable OFF.  Perhaps someone else also has
  54. a use for this as well.  It seems as if there should be another way to do this;
  55. the only one of which I know is to use the SYSEVAL for the [blue shift] [ON] 
  56. key, #3A9CE.
  57.  
  58. Here is a quick summary of the four SYSEVALs covered above:
  59.  
  60. #15781h      recalls the null name '' unquoted
  61. #15777h      recalls the null name '' quoted
  62. #08D5Ah      recalls the current directory
  63. #3A9CEh      turns the 48 off
  64.  
  65. Rick Grevelle
  66.  
  67.  
  68.